<template>
	<view class="page">
		<view class="pageBg">
			<image src="https://bjsx.gzwhir.com/admin-api/infra/file/18/get/memberbg2.jpg" mode="aspectFill"></image>
		</view>
		<view class="flex0">
			<u-navbar :fixed='false' bgColor="transparent" @leftClick="navBack" title="文章列表">
				<view slot="center" class="navTitle">文章列表</view>
			</u-navbar>
		</view>
		<view class="flex1">
			<scroll-view scroll-y="true" class="scrollView">
				<view class="pd30">
					<view class="vMenus">
						<view v-for="(item,index) in dataList" :key="index" @click="goArticleInfo(item.id)"
							class="i navigator">
							<view class="p">{{item.title}}</view>
							<view class="rico">
								<image src="@/static/images/icon-more.svg" mode="aspectFit"></image>
							</view>
						</view>

					</view>
				</view>
			</scroll-view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				page: 1,
				dataList: []
			}
		},
		methods: {},
		onLoad(e) {
			let post = {
				pageNo: this.page
			}
			if (e.parentId) {
				post.parentId = e.parentId
			}
			if (e.id) {
				post.categoryId = e.id
			}
			this.$api.articleList(post, res => {
				if (res.code == 200) {
					this.dataList = res.data.list;
				}
			})
		}
	}
</script>

<style lang="scss" scoped>
	.fbtns {
		padding: 0 30rpx 60rpx;

		.btn {
			font-size: 28rpx;
			text-align: center;
			line-height: 90rpx;
			border-radius: 90rpx;
			background: #fff;
			color: #65554d;
		}
	}
</style>